All Questions
2 questions
1vote
1answer
373views
KSH Pattern from variable does not work
Could somebody explain me why pattern in Korn shell (assigned to variable) works this way: u@h:w$ pattern='file_[0-9][0-9]' u@h:w$ ls $pattern file_01 file_02 file_03 But it doesn't work for ...
8votes
5answers
44kviews
Match regex in ksh
I am looking to do something like this in KSH: if (( $var = (foo|bar)[0-9]*$ )); then print "variable matched regex" fi Is it possible at all? For the record I'm using Ksh Version M-11/16/88i on ...